package com.recharge.controller;

import com.alibaba.fastjson.JSON;

import java.lang.reflect.Field;
import java.util.Arrays;

/**
 * Created by CAOQI on 2017/2/2.
 */
public class LlMakeOrderForm {


    /**
     * 商户订单号
     */
    private String merOrderId;

    /**
     * 手机号
     */
    private String chargeNumber;

    /**
     * 运营商
     */
    private String ispId;

    /**
     * 省份code
     */
    private String provinceId;

    private String busiType;

    /**
     * 流量值
     */
    private String chargeMoney;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 面值
     */
    private String faceValue;

    /**
     * 包类型
     */
    private String packType;

    /**
     * 商户号
     */
    private String merchantId;

    public String getBusiType() {
        return busiType;
    }

    public void setBusiType(String busiType) {
        this.busiType = busiType;
    }

    /**
     * 签名
     */
    private String sign;

    public static void main(String[] args) {
        Field[] fields = LlMakeOrderForm.class.getDeclaredFields();

        String[] temp = new String[fields.length];
        for (int i=0;i<fields.length;i++){
            temp[i] = fields[i].getName();
        }
        Arrays.sort(temp);
        System.out.println(JSON.toJSONString(temp));
    }

    public String getSignString(){
        return "busiType"+busiType+"chargeMoney"+chargeMoney+"chargeNumber"+chargeNumber+
                "faceValue"+faceValue+"ispId"+ispId+"merOrderId"+merOrderId+"merchantId"+merchantId+
                "notifyUrl"+notifyUrl+"packType"+packType+"provinceId"+provinceId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerOrderId() {
        return merOrderId;
    }

    public void setMerOrderId(String merOrderId) {
        this.merOrderId = merOrderId;
    }

    public String getChargeNumber() {
        return chargeNumber;
    }

    public void setChargeNumber(String chargeNumber) {
        this.chargeNumber = chargeNumber;
    }

    public String getIspId() {
        return ispId;
    }

    public void setIspId(String ispId) {
        this.ispId = ispId;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getChargeMoney() {
        return chargeMoney;
    }

    public void setChargeMoney(String chargeMoney) {
        this.chargeMoney = chargeMoney;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getFaceValue() {
        return faceValue;
    }

    public void setFaceValue(String faceValue) {
        this.faceValue = faceValue;
    }

    public String getPackType() {
        return packType;
    }

    public void setPackType(String packType) {
        this.packType = packType;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}
